package com.qiyuesuo.untils;

import com.qiyuesuo.common.BaseClass;
import org.springframework.util.DigestUtils;


public class MD5Untils extends BaseClass {

    public static String getSign(String temp) {
        String sign = null;
        try {
            sign = DigestUtils.md5DigestAsHex(temp.getBytes("utf-8"));
        } catch (Exception ex) {
            logger.error("MD5加密失败" + ex.getMessage() + "||" + ex.getStackTrace());
            return sign;
        } finally {
            return sign;
        }

    }
}
